package com.henme.crm.entity.admin;

import com.google.common.collect.Sets;
import com.henme.crm.util.entity.BaseEntity;

import java.util.Set;


public class User extends BaseEntity {
    private String username;
    private String password;
    private boolean accountNonLocked = true;
    private String email;
    //用户图片
    private String picUrl;

    public String getPicUrl() {
        return picUrl;
    }
    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }
    public String getEmail() {
        return email;
    }
    public void setEmail(String email) {
        this.email = email;
    }

    //用户拥有的角色
    private Set<Role> roles = Sets.newHashSet();

    public String getUsername() {
        return username;
    }
    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean isAccountNonLocked() {
        return accountNonLocked;
    }

    public void setAccountNonLocked(boolean accountNonLocked) {
        this.accountNonLocked = accountNonLocked;
    }

    public Set<Role> getRoles() {
        return roles;
    }

    public void setRoles(Set<Role> roles) {
        this.roles = roles;
    }

}
